<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <title>设备巡检</title>
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../css/aui-pull-refresh.css" />
    <link rel="stylesheet" type="text/css" href="../css/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="css/form.css" />
    <link rel="stylesheet" type="text/css" href="css/comm.css" />
    <!-- <link rel="stylesheet" type="text/css" href="css/header.css" /> -->
    <link rel="stylesheet" type="text/css" href="css/plantasklist.css" />
    <link rel="stylesheet" type="text/css" href="css/plandevicetaskdetail.css" />
    <style>
        /* 公共样式 */
        body {
            background: #F7FBFF;
        }

        .aui_listbox {
            margin-top: 40px;
        }

        .mb20 {
            margin-bottom: 20px;
        }

        .boxarea {
            border-radius: 14px;
            box-shadow: 0px 1px 7px 0px rgba(60, 128, 209, 0.14);
        }

        .work_beginbtn {
            margin: 25px 0px 35px 0px;
            text-align: center;
            height: 44px;
            line-height: 44px;
            color: #fff;
            background: #289FFF;
            box-shadow: 0px 12px 24px 0px rgba(49, 127, 203, 0.32);
            border-radius: 22px;
        }

        .work_beginbtnty3 {
            margin: 25px 0px 35px 0px;
            text-align: center;
            height: 44px;
            line-height: 44px;
            color: #289FFF;
        }

        .tapmode {
            width: 70% !important;
            margin: 0 auto;
            margin-top: 8px;
            border-radius: 50px;
            height: 26px;
            line-height: 26px;
            /* background: #289FFF; */
            color: #fff;
        }

        .aui-active {
            border-radius: 50px;
            height: 26px;
            line-height: 26px;
            background: #fff;
            color: #289FFF;
            box-shadow: 0px 1px 5px 0px rgba(60, 128, 209, 0.12);
        }

        .topheader {
            background-size: 100%;
            color: #000;
            height: 2rem;
            position: fixed;
            top: 0px;
            left: 0;
            right: 0;
            background: #289FFF;
            /* 标准的语法 */
        }
    </style>
</head>

<body>
    <div id="app" v-cloak>
        <header class="aui-bar aui-bar-nav topheader" id="aui-header">
            <div class="aui-tab" style="background: #289FFF; padding-top: 5px;">
                <div class="aui-tab-item" v-on:click="select_status(1)">
                    <div class="tapmode" v-bind:class="{'aui-active':form.TaskStatus==1}">未开始</div>
                </div>
                <div class="aui-tab-item" v-on:click="select_status(3)">
                    <div class="tapmode" v-bind:class="{'aui-active':form.TaskStatus==3}">已结束</div>
                </div>
                <!-- <div class="aui-tab-item" v-on:click="select_status(3)">
                    <div class="tapmode" v-bind:class="{'aui-active':form.TaskStatus==3}">已结束</div>
                </div> -->
            </div>
        </header>
        <section id="main_refresh" class="aui-refresh-content">
            <div class="aui_listbox">
                <div class="aui_list boxarea mb20" v-for="item in list">
                    <div class="work_title">{{item.taskTypeDesc}}</div>
                    <!--<div class="work_con_box_title">
                            <div class="work_con_box_title_name fl"><span>{{item.PlanTypeDesc}}</span></div>
                            <div class="work_con_box_title_statc fr">{{item.TaskStatusDesc}}</div>
                            <div class="cl"></div>
                        </div>-->
                    <div class="work_con_box_time marginheight">
                        <div class="work_con_box_left">计划名称</div>
                        <div class="work_con_box_right">
                            <label>{{item.planName}}</label>
                        </div>
                    </div>
                    <div class="work_con_box_time marginheight">
                        <div class="work_con_box_left">起止时间</div>
                        <div class="work_con_box_right">
                            <label>{{item.startTime}} ~ {{item.endTime}}</label>
                            <label></label>
                        </div>
                    </div>
                    <div class="work_con_box_name marginheight">
                        <div class="work_con_box_left">设备数量</div>
                        <div class="work_con_box_right">
                            <label>{{item.deviceCount}}</label>
                        </div>
                    </div>
                    <div class="work_con_box_name marginheight">
                        <div class="work_con_box_left">负&nbsp;&nbsp;责&nbsp;&nbsp;人</div>
                        <div class="work_con_box_right">
                            <label>{{item.userName}}</label>
                        </div>
                    </div>
                    <div v-if="item.TaskStatus==2 || item.TaskStatus==3" class="work_typebox">
                        <div class="workTypeLft">
                            <div class="workTypeTitle">异常</div>
                            <div class="workTypeNum">{{item.unNormalCount}}</div>
                        </div>
                        <div class="workTypeRgt">
                            <div class="workTypeTitle">正常</div>
                            <div class="workTypeNum">{{item.normalCount}}</div>
                        </div>
                    </div>
                    <!-- v-if="item.TaskStatus==1" -->
                    <div v-if="item.status==1" class="work_beginbtn" v-on:click="open_list(item)">开始任务</div>
                    <!-- <div v-if="item.TaskStatus==2" class="work_beginbtn" v-on:click="open_list(item)">继续执行</div> -->
                    <div v-if="item.status==2" class="work_beginbtnty3" v-on:click="open_list(item)">查看详情</div>
                </div>
                <div v-if="list.length>0" class="notodayList ccc"  style="background:none;">
                    没有更多内容
                </div>
            </div>
            <div class="noinfo" id="noorder" v-if="list.length<=0">
                <img src="../image/index/noinfomsg_icon.png" alt="" />
                <h5><br />暂无相关数据</h5>
            </div>
        </section>
    </div>
</body>

<script type="text/javascript " src="../script/api.js "></script>
<script type="text/javascript " src="../script/vue.js "></script>
<script type="text/javascript" src="../script/config.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript" src="../script/aui-toast.js"></script>
<script type="text/javascript" src="../script/aui-tab.js"></script>
<script type="text/javascript" src="../script/aui-pull-refresh.js"></script>
<script type="text/javascript" src="../script/aui-scroll.js"></script>
<script type="text/javascript" src="../script/aui-slide.js"></script>
<script type="text/javascript" src="../script/aui-popup.js"></script>
<script type="text/javascript " src="js/equipment.js"></script>

</html>
